/**
 * <p>Title: Tag.java</p>
 * <p>Description: DoNotes</p>
 * @author WangJun
 * @date 2009/11/19 22:46:19
 * @version 1.0
 */
package net.donotes.blog.pojo;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @author WangJun
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Tag {
    @PrimaryKey
    @Persistent
	private String name;
    @Persistent
	private String slug;    
	@Persistent
	private int frequency;
	
    /**
     * Constructors
     */
    public Tag() {
    	
    }
    
    /**
     * Constructors
     * 
     * @param name
     * @param slug
     * @param frequency
     */
    public Tag(String name, String slug, int frequency) {
    	this.name = name;
    	this.slug = slug;
    	this.frequency = frequency;
    }
	
    /**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the slug
	 */
	public String getSlug() {
		return slug;
	}

	/**
	 * @param slug the slug to set
	 */
	public void setSlug(String slug) {
		this.slug = slug;
	}

	/**
	 * @return the frequency
	 */
	public int getFrequency() {
		return frequency;
	}

	/**
	 * @param frequency the frequency to set
	 */
	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}
}
